home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / newsgroups / misc.20010306-20010921 / 000282_fdc@watsun.cc.columbia.edu_Thu Jul 19 14:51:41 EDT 2001.msg < prev    next >
Text File  |  2020-01-01  |  3KB  |  72 lines

  1. Article: 12622 of comp.protocols.kermit.misc
  2. Path: newsmaster.cc.columbia.edu!watsun.cc.columbia.edu!fdc
  3. From: fdc@watsun.cc.columbia.edu (Frank da Cruz)
  4. Newsgroups: comp.unix.bsd.freebsd.misc,comp.protocols.kermit.misc
  5. Subject: Re: one-line ftp upload
  6. Date: 19 Jul 2001 18:35:59 GMT
  7. Organization: Columbia University
  8. Lines: 55
  9. Message-ID: <9j79af$ove$1@newsmaster.cc.columbia.edu>
  10. References: <20010716.135702.1187663298.24780@hotmail.com> <_wF57.798$Y47.9351@www.newsranger.com>
  11. NNTP-Posting-Host: watsun.cc.columbia.edu
  12. X-Trace: newsmaster.cc.columbia.edu 995567759 25582 128.59.39.2 (19 Jul 2001 18:35:59 GMT)
  13. X-Complaints-To: postmaster@columbia.edu
  14. NNTP-Posting-Date: 19 Jul 2001 18:35:59 GMT
  15. Xref: newsmaster.cc.columbia.edu comp.unix.bsd.freebsd.misc:174388 comp.protocols.kermit.misc:12622
  16.  
  17. On Mon, 16 Jul 2001 20:55:28 GMT, Neil asked:
  18. > How about this?
  19. > a one-line ftp command to:
  20. >  -log into the ftp host
  21. >  -upload a file
  22. >  -logout of the ftp host
  23. >
  24. > I am trying to solve a webcam problem (as you may be able to see from a
  25. > number of recent postings.) I am preparing a script to periodically
  26. > upload a file of a captured camera image.
  27. >
  28. The new C-Kermit ftp client supports both downloading and uploading from
  29. the command line:
  30.  
  31.   http://www.columbia.edu/kermit/ftpclient.html
  32.  
  33. FTP-specific command-line options are available when you make an "ftp
  34. personality" for C-Kermit by invoking as "ftp" (e.g. through a symbolic
  35. link).  Then you you use the following options:
  36.  
  37.   -d  Debug: enables debug messages and creates a debug.log file.
  38.   -n  No autologin: Kermit should not send your user ID automatically.
  39.   -t  Packet trace: accepted but is treated the same as -d.
  40.   -v  Verbose: accepted but ignored (operation is verbose by default).
  41.   -i  Not interactive: accepted but ignored.
  42.  
  43.   -Y            Don't execute the Kermit initialization file
  44.   -q            Quiet, suppresses all but error messages
  45.   -S            Stay, don't exit automatically
  46.   -A            Autologin anonymously
  47.   -u name       Username for autologin (synonym: -M)
  48.   -P password   Password for autologin
  49.   -D directory  cd after autologin
  50.   -b            Binary mode
  51.   -a            Text ("ascii") mode (synonym: -T)
  52.   -p files      Files to put (upload) after autologin (synonym: -s)
  53.   -g files      Files to get (download) after autologin
  54.  
  55. Plus a bunch of others relating to secure (Kerberos or SSL/TLS) connections.
  56.  
  57. Here's a "put" example using anonymous login:
  58.  
  59.  ftp -A kermit.columbia.edu -D kermit/incoming -bp debug.log
  60.  
  61. Substitute the appropriate -u and -P options to log in as a real user, or
  62. use secure authentication.
  63.  
  64. FTP URLs are also accepted on the command line, even without the "ftp"
  65. personality, e.g.:
  66.  
  67.   kermit ftp://kermit.columbia.edu/kermit/READ.ME 
  68.  
  69. GETs the indicated file.
  70.  
  71. - Frank
  72.